package com.sise.stuteaintersys.locallibs.enums;

import lombok.Getter;

/**
 * @ClassName FileEnum
 * @Description
 * @Date 2018/12/27 11:53
 * @Version 1.0
 **/
@Getter
public enum  FileEnum implements CodeEnum {
    /**
     * 保存文件操作需要使用的code和message
     */
    FILESUCCESS(10000, "成功"),
    FIELDERROR(10001, "获取文件列表失败"),
    FILEUPLOADERROR(10002, "文件上传失败"),
    CAGETEFOLDERERROR(10003, "创建目录失败"),
    CONFERRER(10004, "文件复制失败"),
    MOVEERROR(10005, "文件移动失败"),
    REMOVEERROR(10006, "文件删除失败"),
    RENAMEERROR(10007, "文件改名失败");

    private Integer code;
    private String message;

    FileEnum(Integer code, String message){
        this.code = code;
        this.message = message;
    }

}
